package cn.edu.nuc.ssm.util;
/**
 * 分页控件对象
 * 
 * @author zhangkairong 
 * @version 2017-3-20 下午9:25:38
 * 
 */
public class PageControl {

	/**
	 * 当前第几页
	 */
	private int currentIndex=1;
	
	/**
	 * 每页多少行数据(默认每页10行数据)
	 */
	private Integer pagesize = 8;
	
	/**
	 * 总记录数
	 */
	private Integer sumCount;
	
	/**
	 * 总页数
	 */
	private Integer sumPage;
	
	/**
	 * 分页控件一次显示多少页码(默认一次5页)
	 */
	private Integer everyPageShowPageNum = 5;
	
	/**
	 * 当前分页控件显示的最大页数
	 */
	private Integer maxPage;
	
	/**
	 * 当前分页控件显示的最小页数
	 */
	private Integer minPage;

	public int getCurrentIndex() {
		return currentIndex;
	}

	public void setCurrentIndex(int currentIndex) {
		this.currentIndex = currentIndex;
	}

	public Integer getPagesize() {
		return pagesize;
	}

	public void setPagesize(Integer pagesize) {
		this.pagesize = pagesize;
	}

	public Integer getSumCount() {
		return sumCount;
	}

	public void setSumCount(Integer sumCount) {
		this.sumCount = sumCount;
	}

	public Integer getSumPage() {
		return sumPage;
	}

	public void setSumPage(Integer sumPage) {
		this.sumPage = sumPage;
	}

	public Integer getEveryPageShowPageNum() {
		return everyPageShowPageNum;
	}

	public void setEveryPageShowPageNum(Integer everyPageShowPageNum) {
		this.everyPageShowPageNum = everyPageShowPageNum;
	}

	public Integer getMaxPage() {
		return maxPage;
	}

	public void setMaxPage(Integer maxPage) {
		this.maxPage = maxPage;
	}

	public Integer getMinPage() {
		return minPage;
	}

	public void setMinPage(Integer minPage) {
		this.minPage = minPage;
	}


	@Override
	public String toString() {
		return "PageControl{" +
				"currentIndex=" + currentIndex +
				", pagesize=" + pagesize +
				", sumCount=" + sumCount +
				", sumPage=" + sumPage +
				", everyPageShowPageNum=" + everyPageShowPageNum +
				", maxPage=" + maxPage +
				", minPage=" + minPage +
				'}';
	}
}
